<template>
	<view>
		
		<scroll-view :style="{background:'red',height:screenHeight+'px'}"  scroll-y="true" class="scroll-Y" 
			>
			{{screenHeight}}
		</scroll-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				screenHeight:0
			}
		},
		onLoad(){
			this.getpx()
		},
		methods: {
			getpx(){
				let that=this
				uni.getSystemInfo({
					success: function (res) {
						console.log(res)
						that.screenHeight=res.screenHeight-res.windowTop
					}
				})
			}
		}
	}
</script>

<style>

</style>
